package com.wq.biz;

import com.wq.ui.coms.ImageGet;

public class Role {
    private int index;
    private Plane[] plane = new Plane[4];
    public int isOver = 0;

    public Role(int index) {
        this.index = index;
        for (int c = 0; c < plane.length; c++) {
            plane[c] = new Plane(ImageGet.getImageGet().getPlaneIcon(index));
            plane[c].iniConstruc(ImageGet.getImageGet().getPlaneIcon(index), index, c);
            plane[c].init(5, 5f);
        }
    }

    public void setNotYourTurn() {
        for (int c = 0; c < plane.length; c++) {
            plane[c].setCanMove(false);
        }
    }

    public int getIndex() {
        return index;
    }

    public Plane[] getPlane() {
        return plane;
    }

    public void setIndex(int index) {
        this.index = index;
    }


}
